"""
日期:2022.9.5 10:27
"""
import requests


class LoginAPI:
    def __init__(self):
        self.url_verify="http://localhost:8080/shop3/code.action"
        self.url_login="http://localhost:8080/shop3/muserLogin.action"

    def get_verify_code(self,session):
        return session.get(url=self.url_verify)
    def login(self,session,username,password,checkImg):
        data={
            "username":username,
            "password":password,
            "checkImg":checkImg
        }
        return session.get(url=self.url_login,json=data)
